<%-- 
    Document   : index
    Created on : Mar 21, 2010, 12:31:05 PM
    Author     : Tizma
--%>

<%@page contentType="text/html" pageEncoding="windows-1252"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <link rel="stylesheet" href="../nash.css"/>
        <script src="http://static.simile.mit.edu/timeline/api-2.3.0/timeline-api.js?bundle=true" type="text/javascript"></script>
    </head>
    <body>
    <center>
        <br/>
        <table>
            <tr>
                <td>Nash</td>
                <td id="nashTd">${it.nash}</td>
            </tr>
            <tr>
                <td>The Situation</td>
                <td id="theSituationTd">${it.situation}</td>
            </tr>
        </table>
        <br/>
        <table>
            <tr>
                <td><a href="changeNash">Change Of Nash</a></td>
                <td><a href="changeSituation">Change of The Situation</a></td>
            </tr>
            <tr>
                <td colspan="2">
                    <center>
                        <a href="addPerson">Add Person</a>
                    </center>
                </td>
            </tr>
        </table>
        <br/>
        <table cellpadding="2" cellspacing="2" border="1">
            <thead>
                <tr>
                    <th>Nash Messages</th>
                    <th>Situation Messages</th>
                </tr>
            </thead>
            <tr>
                <td>
                    <div id="nashMessages">
                        <c:forEach var="message" items="${it.nashMessages}">
                            <b>${message.formattedTime}
                                <br/>From: ${it.namesMap[message.personFrom]} | To: ${it.namesMap[message.personTo]}
                            </b>
                            <br/>
                            ${message.text}
                            <hr/>
                        </c:forEach>
                    </div>
                </td>
                <td>
                    <div id="situationMessages">
                        <c:forEach var="message" items="${it.situationMessages}">
                            <b>${message.formattedTime}
                                <br/>From: ${it.namesMap[message.personFrom]} | To: ${it.namesMap[message.personTo]}
                            </b>
                            <br/>
                            ${message.text}
                            <hr/>
                        </c:forEach>
                    </div>
                </td>
            </tr>
        </table>
    </center>
    </body>
</html>
